<?php

/**
 * @author PeoneEr
 */
require_once "core/db.php";

class Msearch1 extends DB {

    private $_query;

    protected function startSearch($name) {
        /**
         *  поиск..
         * @param string $name
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `name` FROM `players` WHERE `name` LIKE '%" . $name . "%' LIMIT 1 ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
